package cn.itcast.java.thread;

/**
 * Author itcast
 * Date 2021/10/15 9:09
 * Desc TODO
 */
public class ThreadPriority implements Runnable {
    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println(Thread.currentThread().getName()+": "+ i);
            try {
                Thread.sleep(2000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
